package com.toggery.POS;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


//JPA标准
@SpringBootApplication(scanBasePackages = {"com.toggery.POS"},exclude = {DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@MapperScan(value = "com.toggery.POS.dao")
@EntityScan("com.toggery.POS.entity")
@EnableSwagger2
public class POSApplication {

    public static void main(String[] args) {
        SpringApplication.run(POSApplication.class, args);
    }
}
